﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace jishuApplication3
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("欢迎使用菜鸟计算器计算器");
            Console.Write("请输入第一个数：");
            String StringNumber1 = Console.ReadLine();
            Console.Write("请输入加减乘除（ + ,—, * , /）：");
            String Symbol = Console.ReadLine();
            Console.Write("请输入第二个数：");
            string StringNumber2 = Console.ReadLine();

            double  Number1 = Convert.ToDouble(StringNumber1);
            double  Number2 = Convert.ToDouble(StringNumber2);

            if (Symbol == "+")
            {
                Console.WriteLine("{0}+{1}={2}", Number1, Number2, Number1 + Number2);
            }
            else if (Symbol == "-")
            {
                Console.WriteLine("{0}-{1}={2}", Number1, Number2, Number1 - Number2);
            }
            else if (Symbol == "*")
            {
                Console.WriteLine("{0}*{1}={2}", Number1, Number2, Number1 * Number2);
            }
            else if (Symbol == "/")
            {
                Console.WriteLine("{0}/{1}={2}", Number1, Number2, Number1 / Number2);
            }
            else
            {
                Console.WriteLine("输入错误");
            }
            Console.ReadKey();
        }
    }
}
